package com.woniu.outlet.dao;

import com.woniu.outlet.po.EquipmentStop;
import com.woniu.outlet.po.EquipmentStopExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface EquipmentStopMapper {
    long countByExample(EquipmentStopExample example);

    int deleteByExample(EquipmentStopExample example);

    int deleteByPrimaryKey(Long id);

    int insert(EquipmentStop record);

    int insertSelective(EquipmentStop record);

    List<EquipmentStop> selectByExample(EquipmentStopExample example);

    EquipmentStop selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") EquipmentStop record, @Param("example") EquipmentStopExample example);

    int updateByExample(@Param("record") EquipmentStop record, @Param("example") EquipmentStopExample example);

    int updateByPrimaryKeySelective(EquipmentStop record);

    int updateByPrimaryKey(EquipmentStop record);

    //查询报停设备(根据设备编码)
    @Select("select * from erp_equipment_stop where equipment_no = #{equipmentNo}")
    EquipmentStop selectEquipmentStopByEquipmentNo(String equipmentNo);
}